package com.xbongbong.admin.domain.entity;

import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author guohui.zhang
 * @Title: 表单安装实体(镜像3.0)
 * @Package
 * @Description: 安装图表
 * @date 2020/3/1219:28
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class FormInstallEntity extends Entity {
    private static final long serialVersionUID = 1331614247150595771L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 类型, 镜像mirror，若有其他应用再加
     */
    private String type;
    /**
     * 安装应用id
     */
    private Long appId;
    /**
     * 表单ID
     */
    private Long menuId;
    /**
     * 表单id
     */
    private Long formId;
    /**
     * 来源应用主键id
     */
    private Long sourceAppId;
    /**
     * 来源菜单id
     */
    private Long sourceMenuId;
    /**
     * 来源表单主键id
     */
    private Long sourceFormId;
    /**
     * 来源应用所属公司
     */
    private String sourceCorpid;
    /**
     * saas业务类型
     */
    private Integer businessType;
    /**
     * 删除标记
     */
    private Integer del;
    /**
     * 创建者userId
     */
    private String creatorId;
    /**
     * 创建时间时间戳
     */
    private Long addTime;

    /**
     * 更新时间时间戳
     */
    private Long updateTime;

    /**
     * 镜像id
     */
    private Long mirrorId;

    /**
     * 镜像应用安装主键id
     */
    private Long appInstallId;

    public FormInstallEntity (String corpid, String type, Long mirrorId, Long appInstallId, Long appId, Long menuId, Long formId, Long sourceAppId, Long sourceMenuId, Long sourceFormId, String sourceCorpid, Integer businessType, Integer del) {
        this.corpid = corpid;
        this.type = type;
        this.mirrorId = mirrorId;
        this.appInstallId = appInstallId;
        this.appId = appId;
        this.menuId = menuId;
        this.formId = formId;
        this.sourceAppId = sourceAppId;
        this.sourceMenuId = sourceMenuId;
        this.sourceFormId = sourceFormId;
        this.sourceCorpid = sourceCorpid;
        this.businessType = businessType;
        this.del = del;
    }
}
